package edu.tamu.cse.teamproject1.Database;

import java.util.Date;

/**
 * 
 * @author Ben Unsworth
 * this is the subclass of TupleElement to represent a Date
 *
 */

public class TupleDateElement extends TupleElement {
	/**
	 * constructor, defines the type and value of the TupleElement 
	 * @param value
	 */
	public TupleDateElement(Date value) {
		tupleValue = value;
		tupleType = EnumColumnType.date;
		size = 255;
	}
	
	/**
	 * 
	 * @return the date of this tupleElement
	 */
	@Override
	public Date getValue(){
		return (Date)tupleValue;
	}
	
	/**
	 * set the date of this tupleElement
	 * @param value
	 */
	@Override
	public void setValue(Object value){
		tupleValue = (Date)value;
	}
}
